import bpy
from ogreEx.context import get__name__
from ogreEx.ui.UIClass import UI_CLASSES

## Ogre Documentation to UI

_OGRE_DOCS_ = []

def ogredoc( cls ):
    tag = cls.__name__.split('_ogredoc_')[-1]
    cls.bl_label = tag.replace('_', ' ')
    _OGRE_DOCS_.append( cls )
    UI_CLASSES.append(cls);
    return cls

def get_OGRE_DOCS_():
    return _OGRE_DOCS_